package cn.edu.scau.cmi.linzhanyi.adapter;

import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.ComboBox;
import javafx.scene.control.Label;
import javafx.scene.control.TextArea;
import javafx.scene.layout.*;

import java.net.URL;
import java.util.Random;
import java.util.ResourceBundle;

public class Controller  {

    @FXML
    private Label high;
    @FXML
    private Label low;
    @FXML
    private Label charge;

    
    public void HtoC(){
    	ChargeVoltage chargeVoltage = new AdapterOfVoltage_HtoC();
    	charge.setText(chargeVoltage.getChargeVoltage());
        
    }

    public void LtoC(){
    	ChargeVoltage chargeVoltage = new AdapterOfVoltage_LtoC();
    	charge.setText(chargeVoltage.getChargeVoltage());
    }
   
    public void initialize() {
        HighVoltage highVoltage = new HighVoltage(); 
        high.setText(highVoltage.getVoltage());
        LowVoltage lowVoltage = new LowVoltage();
        low.setText(lowVoltage.getVoltage());

    }
}
